﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Services.Common;
using Microsoft.Samples.ServiceHosting.StorageClient;
namespace MyForumsMVC.Models
{
    [DataServiceKey("PartitionKey","RowKey")]
    public class Forum
    {
        //Site Name
        public string PartitionKey { get; set; }
        //Forum webtag
        public string RowKey { get; set; }
        //Forum Name
        public string Name { get; set; }
        //Category
        public string Category { get; set; }
        //UID of Owner
        public string OwnerId { get; set; }
        //Public forum (List in Directory)
        public bool isPublic { get; set; }
        //Is forum open
        public bool isOpen { get; set; }
        //Is Membership restricted to preapproved members
        public bool isRestrcited { get; set; }
        //Is there a password for forum access
        public bool isPassword { get; set; }
        //PAssword for the forum if it is pass protected
        public string Password { get; set; }
        //When was the forum created
        public DateTime DateCreated { get; set; }
        //For Directory Listing
        public string Description { get; set; }
        //Keeps a easy to track post total
        public int TotalPosts { get; set; }
        //The blob UID of the Start page
        public string StartPage { get; set; }
        //The ThemeName to Use
        public string Theme { get; set; }

    }
}
